import request from "@/utils/serviceApiH2";

/*  简历管理  */

// 取消收藏
export function ResumeCollectionApi(id) {
  return request({
    url: `/apiH2/member/company/resume/ResumeCollection/${id}`,
    method: "DELETE",
  });
}

// 简历收藏列表查询
export function ResumeCollectionListApi(params) {
  return request({
    url: `/apiH2/member/company/resume/ResumeCollectionList`,
    method: "GET",
    params
  });
}

// 新增备注
export function addRemarkApi() {
  return request({
    url: `/apiH2/member/company/resume/addRemark`,
    method: "PUT",
  });
}

// 删除投递记录
export function delDeliveryApi(id) {
  return request({
    url: `/apiH2/member/company/resume/delDelivery/${id}`,
    method: "DELETE",
  });
}

// 简历下载列表查询
export function downResumeListApi() {
  return request({
    url: `/apiH2/member/company/resume/downResumeList/${cid}`,
    method: "GET",
  });
}

// 新增面试邀请
export function addInterviewApi() {
  return request({
    url: `/apiH2/member/company/resume/interview/addInterview`,
    method: "POST",
  });
}

// 面试邀请列表查询
export function interviewListApi() {
  return request({
    url: `/apiH2/member/company/resume/interview/interviewList`,
    method: "GET",
  });
}

// 近两周简历处理情况
export function latelyTwoWeeksApi(uid) {
  return request({
    url: `/apiH2/member/company/resume/latelyTwoWeeks/${uid}`,
    method: "GET",
  });
}

// 收到简历列表查询
export function receivedResumeListApi() {
  return request({
    url: `/apiH2/member/company/resume/receivedResumeList`,
    method: "GET",
  });
}

// 简历保存
export function resumeSaveApi(params) {
  return request({
    url: `/apiH2/member/company/resume/resumeSave/${params.rid}/${params.uid}`,
    method: "GET",
  });
}

// 链接查询
export function selResumeDetailsByIdApi() {
  return request({
    url: `/apiH2/member/company/resume/selResumeDetailsById/${uid}/${rid}`,
    method: "GET",
  });
}

// 修改备注
export function updateRemarksApi() {
  return request({
    url: `/apiH2/member/company/resume/updateRemarks/${id}`,
    method: "PUT",
  });
}

// 浏览记录我看过
export function viewRecordISawItApi() {
  return request({
    url: `/apiH2/member/company/resume/viewRecord/iSawIt/{uid}`,
    method: "GET",
  });
}

// 浏览记录看过我
export function lookAtMeApi() {
  return request({
    url: `/apiH2/member/company/resume/viewRecord/lookAtMe/${uid}`,
    method: "GET",
  });
}

